<!--
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2024-06-28 11:17:53
 * @LastEditTime: 2024-06-28 11:17:58
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \html\code\2_CSS\11_常用文本属性\02_文本间距.html
 * @Description:
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本间距</title>
    <style>
        div {
            font-size: 30px;
        }

        .atguigu2 {
            letter-spacing: 20px;
        }

        .atguigu3 {
            word-spacing: 20px;
        }
    </style>
</head>

<body>
    <div>You get a dream, you gotta protect it. 尚硅谷1</div>
    <div class="atguigu2">You get a dream, you gotta protect it. 尚硅谷2</div>
    <div class="atguigu3">You get a dream, you gotta protect it. 尚硅谷3</div>
</body>

</html>